From: Carlos Soriano Date: Thu, 22 Aug 2013 21:27:05 +0000 (+0200) Subject: iconGrid: Rename childrenInRow to columnsForWidth X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~3551 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=cc449228f3c0a640216caafa0f1a432177940938;p=gnome-shell.git iconGrid: Rename childrenInRow to columnsForWidth Since the parameter of the function is the width, reflect that in the function name. Also, since we are counting columns, not only children for each row, reflect that in the function name also. https://bugzilla.gnome.org/show_bug.cgi?id=706081 --- diff --git a/js/ui/iconGrid.js b/js/ui/iconGrid.js index a5c16f098..d408b1be7 100644 --- a/js/ui/iconGrid.js +++ b/js/ui/iconGrid.js @@ -330,7 +330,7 @@ const IconGrid = new Lang.Class({ return childBox; }, - childrenInRow: function(rowWidth) { + columnsForWidth: function(rowWidth) { return this._computeLayout(rowWidth)[0]; }, diff --git a/js/ui/searchDisplay.js b/js/ui/searchDisplay.js index 2177874f6..9d47e44ec 100644 --- a/js/ui/searchDisplay.js +++ b/js/ui/searchDisplay.js @@ -320,7 +320,7 @@ const GridSearchResults = new Lang.Class({ }, _getMaxDisplayedResults: function() { - return this._grid.childrenInRow(this._bin.width) * this._grid.getRowLimit(); + return this._grid.columnsForWidth(this._bin.width) * this._grid.getRowLimit(); }, _renderResults: function(metas) {